//
//  MHCommonGroupViewModel.m
// MiaoCircle
//
//Created by acgera on 2018/4/9.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHCommonGroupViewModel.h"

@implementation MHCommonGroupViewModel
+ (instancetype)groupViewModel{
    return [[self alloc] init];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _footerHeight = 10;
        _headerHeight = CGFLOAT_MIN;
    }
    return self;
}

-(CGFloat)footerHeight
{
    if (_footerHeight < 20 && self.footer.length > 0) {
        return 25;
    }else
    {
        return _footerHeight;
    }
}
@end
